package com.wanxi.in;

import java.io.*;

public class MyIn {
    public static void main(String[] args) {
        String path = "E:\\wanxi\\step-2\\java02-0921\\day20IO\\src\\com\\wanxi\\io/temp";
        String fileName = "a.txt";
//        InputStream inputStream=new FileInputStream(path+"/"+fileName);
        try {
            InputStream inputStream = new FileInputStream(new File(path, fileName));
//            int read = inputStream.read();
//            char cc= (char) read;
//            System.out.println(cc);
            int read = 0;
            while ((read = inputStream.read()) != -1) {
                System.out.print((char) read);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
